*August 2020 Lucid Survey*

**NOTE: To run this file in Stata, users will have to download the 'interflex' package 
net search interflex 


********************
**Figure 2 Panel A**
********************

*Left Graph
interflex zlocineq zpbelow30k pabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)
*Right Graph
interflex zlocineq zpbelow25k pabove125 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)


***************************************
**Figure 3 Panel A; Appendix Table A1**
***************************************

*Gini Coefficient
reg zlocineq zgini19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*80/20 Ratio
reg zlocineq zratio19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*Top 5% Share
reg zlocineq ztop5share19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*Top-Concentrated and Bottom-Concentrated
reg zlocineq ztop5mid19zip zmidlow19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*%Below $30K and %Above $100K
reg zlocineq zpbelow30k zpabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*%Below $30K at 3 bins of Above $100K
interflex zlocineq zpbelow30k pabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)

***************************************
**Figure 4; Appendix Table A3**
***************************************

*Gini Coefficient
reg zmiltax zgini19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)


*80/20 Ratio
reg zmiltax zratio19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*Top 5% Share
reg zmiltax ztop5share19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*Top-Concentrated and Bottom-Concentrated
reg zmiltax ztop5mid19zip zmidlow19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*%Below $30K and %Above $100K
reg zmiltax zpbelow30k zpabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

*%Below $30K at 3 bins of Above $100K
interflex zmiltax zpbelow30k pabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)


***************************************
**Appendix Table A4**
***************************************
*Column 1
reg zlocineq zrHHIm19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
*Column 2
reg zlocineq zrHHIc19zip zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)

***************************************
**Appendix Figure A1, Panel A**
***************************************
*Top Graph
interflex zlocineq zpbelow35k pabove100 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)
*Bottom Graph
interflex zlocineq zpbelow35k pabove125 zmedinc19zip zpcollege19zip zpunemp19zip zpnonwht19zip zpopden19zip zeduc lowmidincome midincome highmidincome highincome missingincome zAge male black latino aapi unemployed union_mem union_past zpartyid zftpoor, cluster(zip)
mat list r(estBin)

